package com.ruoyi.customer.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.customer.domain.CustomerContract;
import com.ruoyi.customer.domain.CustomerContractItem;
import com.ruoyi.customer.dto.AttachmentInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:zzm
 * @Date: 2024/8/30 13:38
 */
@Mapper
public interface CustomerContractMapper extends BaseMapper<CustomerContract> {

    /**
     * 查询列表
     */
    List<CustomerContract> getList(@Param("customerNickName") String customerNickName,@Param("customerId")String customerId);

    /**
     * 删除
     *
     * @param id
     */
    void deleteByIds(Long id);

    //附件-合同
    CustomerContractItem selectByParentIdAndDate(@Param("parentId") String parentId);

    List<CustomerContractItem> selectByParentIds(List<String> parentIds);

    //附件-报价
    //CustomerContractItem selectByParentIdAndDatePrice(@Param("parentId") Long parentId);

    List<CustomerContractItem> selectByParentIdsPrice(List<Long> parentIds);


}
